<!DOCTYPE HTML>
<html>

    <style type = "text/css" rel="stylesheet">
        @import url("../templates/index.css");
    </style>

    <body>
        <div>
            <header>
                <div>
                    {if not $logged}
                        {include file="login.tpl"}
                    {else}
                        {include file="logged.tpl"}
                    {/if}
                </div>
                <div id="logo"><img src="../project/Images/mplayer_logo.png" alt="MPlayer" width="400" height="120" /></div>
            </header>
            <div id="central">
                <div id = "menulateralizquierdo" align="center">
		    {if $logged}
			{include file="menuPlaylist.tpl"}
		    {/if}
		</div>
                <div id = "contenido">
                    {if $content == 0}
                        {include file="default.tpl"}
                    {else if $content == 1}
                        {include file="register.tpl"}
                    {else if $content == 2}
                        {include file="playlist.tpl"}
                    {else if $content == 3}
                        {include file="uploadsong.tpl"}
                    {else if $content == 4}
                        {include file="profile.tpl"}
                    {else if $content == 5}
                        {include file="playlist.tpl"}
                    {else if $content == 6}
                        {include file="createPlaylist.tpl"}
                    {else if $content == 7}
                        {include file="playlist.tpl"}
                    {/if}
                </div>
                <div id = "menulateralderecho" align="center">
                    {if $logged}
                        {include file="menu.tpl"}
                    {/if}
                </div>
            </div>
	    <audio id="playsong" src="{$song}" controls="controls" preload="auto" autobuffer>
                If you see this, your web browser is not html5 ready
	    </audio>
        </div>
    </body>

</html>

